<form id="form_login" action="<?php echo $this->baseUrl()?>/user/login" method="post" style="display: none;">
	<img alt="close" src="<?php echo $this->baseUrl()?>/public/common/img/x_btn.jpg" class = "x_btn right" onclick="login(event)">
	<table>
	<tr>
		<td colspan="2" style="font-size: 150%; color: #FFD700">
		Đăng nhập
		</td>
	</tr>
	<tr>
		<td>Username </td>
		<td><input type="text" name = "username" value=""></td>
	</tr>
	<tr>
		<td>Password </td>
		<td><input type="password" name = "password" value=""></td>
	</tr>
	<tr>
		<td colspan="2" style="padding: 0px">
		<center><input id ="btn_login" type="submit" value="Login"></center>
		</td>
	</tr>
	<tr>
		<td colspan="2" style="padding: 0px">
		<center><a id ="btn_login_face" >Login with Gmail</a></center>
		</td>
	</tr>
	</table>
	
</form>
<?php if(!$this->user){?>
		<div id = "login-icon" onclick = "login(event)">
			<img   alt="login" src="<?php echo $this->baseUrl()?>/public/common/img/default_avatar.jpg" class="right">
			<span class = "right" style="padding: 10px 10px 0px;">Đăng nhập</span>
		</div>
		<?php }else {
			?>
			<div class='right user_info right' >
			<a onclick = "showAcountSettingSelection(event)" href="#" class="right" style="z-index: 3">
				<i class="triangle_bottom right" id="acount_setting" role="button"   >
				</i>
			</a>
			<img class = "right" width="30px" height="30px" style = "margin-left: 10px; border-radius:5px;" src="//lh3.googleusercontent.com/-G5GW4jvJF3U/AAAAAAAAAAI/AAAAAAAAAAA/_DD7vAaJK84/s96-c/photo.jpg" alt="nguyễn xuân thiện">
		<span style="padding: 10px 5px 0px;" class = "right">
			<?php
				echo $this->user->{"username"};
			?>
		</span>
			</div>
		
		<div id ="acount_setting_box" class = "hidden" >
			<div class = "left avatar">
				<a class="left" href="">
				<img id="gbmpi" width="96" height="96" src="//lh3.googleusercontent.com/-G5GW4jvJF3U/AAAAAAAAAAI/AAAAAAAAAAA/_DD7vAaJK84/s96-c/photo.jpg" alt="nguyễn xuân thiện">
				</a>
			</div>
			<div class="acount_right_info">
				<span class="acount_name">
					nguyễn xuân thiện
				</span>
				<span class="email">thienbk.4c@gmail.com</span>
				<div class="button_row">
					<a role="button"   href="" class="acount_btn">
						Hồ sơ
					</a>
					<a role="button"  href="<?php echo $this->baseUrl()?>/user/logout" class="acount_btn">
						Đăng xuất
					</a>
				</div>
			</div>
		</div>
<?php }?>
<div class = "overlay hidden"></div>